package com.cvit.cn.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AcceptanceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AcceptanceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAcceptanceIdIsNull() {
            addCriterion("acceptance_id is null");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdIsNotNull() {
            addCriterion("acceptance_id is not null");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdEqualTo(String value) {
            addCriterion("acceptance_id =", value, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdNotEqualTo(String value) {
            addCriterion("acceptance_id <>", value, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdGreaterThan(String value) {
            addCriterion("acceptance_id >", value, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdGreaterThanOrEqualTo(String value) {
            addCriterion("acceptance_id >=", value, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdLessThan(String value) {
            addCriterion("acceptance_id <", value, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdLessThanOrEqualTo(String value) {
            addCriterion("acceptance_id <=", value, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdLike(String value) {
            addCriterion("acceptance_id like", value, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdNotLike(String value) {
            addCriterion("acceptance_id not like", value, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdIn(List<String> values) {
            addCriterion("acceptance_id in", values, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdNotIn(List<String> values) {
            addCriterion("acceptance_id not in", values, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdBetween(String value1, String value2) {
            addCriterion("acceptance_id between", value1, value2, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andAcceptanceIdNotBetween(String value1, String value2) {
            addCriterion("acceptance_id not between", value1, value2, "acceptanceId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdIsNull() {
            addCriterion("release_id is null");
            return (Criteria) this;
        }

        public Criteria andReleaseIdIsNotNull() {
            addCriterion("release_id is not null");
            return (Criteria) this;
        }

        public Criteria andReleaseIdEqualTo(String value) {
            addCriterion("release_id =", value, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdNotEqualTo(String value) {
            addCriterion("release_id <>", value, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdGreaterThan(String value) {
            addCriterion("release_id >", value, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdGreaterThanOrEqualTo(String value) {
            addCriterion("release_id >=", value, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdLessThan(String value) {
            addCriterion("release_id <", value, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdLessThanOrEqualTo(String value) {
            addCriterion("release_id <=", value, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdLike(String value) {
            addCriterion("release_id like", value, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdNotLike(String value) {
            addCriterion("release_id not like", value, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdIn(List<String> values) {
            addCriterion("release_id in", values, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdNotIn(List<String> values) {
            addCriterion("release_id not in", values, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdBetween(String value1, String value2) {
            addCriterion("release_id between", value1, value2, "releaseId");
            return (Criteria) this;
        }

        public Criteria andReleaseIdNotBetween(String value1, String value2) {
            addCriterion("release_id not between", value1, value2, "releaseId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdIsNull() {
            addCriterion("supplier_id is null");
            return (Criteria) this;
        }

        public Criteria andSupplierIdIsNotNull() {
            addCriterion("supplier_id is not null");
            return (Criteria) this;
        }

        public Criteria andSupplierIdEqualTo(String value) {
            addCriterion("supplier_id =", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotEqualTo(String value) {
            addCriterion("supplier_id <>", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdGreaterThan(String value) {
            addCriterion("supplier_id >", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdGreaterThanOrEqualTo(String value) {
            addCriterion("supplier_id >=", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdLessThan(String value) {
            addCriterion("supplier_id <", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdLessThanOrEqualTo(String value) {
            addCriterion("supplier_id <=", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdLike(String value) {
            addCriterion("supplier_id like", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotLike(String value) {
            addCriterion("supplier_id not like", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdIn(List<String> values) {
            addCriterion("supplier_id in", values, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotIn(List<String> values) {
            addCriterion("supplier_id not in", values, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdBetween(String value1, String value2) {
            addCriterion("supplier_id between", value1, value2, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotBetween(String value1, String value2) {
            addCriterion("supplier_id not between", value1, value2, "supplierId");
            return (Criteria) this;
        }

        public Criteria andFlagIsNull() {
            addCriterion("flag is null");
            return (Criteria) this;
        }

        public Criteria andFlagIsNotNull() {
            addCriterion("flag is not null");
            return (Criteria) this;
        }

        public Criteria andFlagEqualTo(Integer value) {
            addCriterion("flag =", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotEqualTo(Integer value) {
            addCriterion("flag <>", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThan(Integer value) {
            addCriterion("flag >", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("flag >=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThan(Integer value) {
            addCriterion("flag <", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThanOrEqualTo(Integer value) {
            addCriterion("flag <=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagIn(List<Integer> values) {
            addCriterion("flag in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotIn(List<Integer> values) {
            addCriterion("flag not in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagBetween(Integer value1, Integer value2) {
            addCriterion("flag between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("flag not between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeIsNull() {
            addCriterion("release_time is null");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeIsNotNull() {
            addCriterion("release_time is not null");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeEqualTo(Date value) {
            addCriterion("release_time =", value, "releaseTime");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeNotEqualTo(Date value) {
            addCriterion("release_time <>", value, "releaseTime");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeGreaterThan(Date value) {
            addCriterion("release_time >", value, "releaseTime");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("release_time >=", value, "releaseTime");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeLessThan(Date value) {
            addCriterion("release_time <", value, "releaseTime");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeLessThanOrEqualTo(Date value) {
            addCriterion("release_time <=", value, "releaseTime");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeIn(List<Date> values) {
            addCriterion("release_time in", values, "releaseTime");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeNotIn(List<Date> values) {
            addCriterion("release_time not in", values, "releaseTime");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeBetween(Date value1, Date value2) {
            addCriterion("release_time between", value1, value2, "releaseTime");
            return (Criteria) this;
        }

        public Criteria andReleaseTimeNotBetween(Date value1, Date value2) {
            addCriterion("release_time not between", value1, value2, "releaseTime");
            return (Criteria) this;
        }

        public Criteria andAdministratorsIsNull() {
            addCriterion("administrators is null");
            return (Criteria) this;
        }

        public Criteria andAdministratorsIsNotNull() {
            addCriterion("administrators is not null");
            return (Criteria) this;
        }

        public Criteria andAdministratorsEqualTo(String value) {
            addCriterion("administrators =", value, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsNotEqualTo(String value) {
            addCriterion("administrators <>", value, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsGreaterThan(String value) {
            addCriterion("administrators >", value, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsGreaterThanOrEqualTo(String value) {
            addCriterion("administrators >=", value, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsLessThan(String value) {
            addCriterion("administrators <", value, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsLessThanOrEqualTo(String value) {
            addCriterion("administrators <=", value, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsLike(String value) {
            addCriterion("administrators like", value, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsNotLike(String value) {
            addCriterion("administrators not like", value, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsIn(List<String> values) {
            addCriterion("administrators in", values, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsNotIn(List<String> values) {
            addCriterion("administrators not in", values, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsBetween(String value1, String value2) {
            addCriterion("administrators between", value1, value2, "administrators");
            return (Criteria) this;
        }

        public Criteria andAdministratorsNotBetween(String value1, String value2) {
            addCriterion("administrators not between", value1, value2, "administrators");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeIsNull() {
            addCriterion("updata_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeIsNotNull() {
            addCriterion("updata_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeEqualTo(Date value) {
            addCriterion("updata_time =", value, "updataTime");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeNotEqualTo(Date value) {
            addCriterion("updata_time <>", value, "updataTime");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeGreaterThan(Date value) {
            addCriterion("updata_time >", value, "updataTime");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updata_time >=", value, "updataTime");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeLessThan(Date value) {
            addCriterion("updata_time <", value, "updataTime");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeLessThanOrEqualTo(Date value) {
            addCriterion("updata_time <=", value, "updataTime");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeIn(List<Date> values) {
            addCriterion("updata_time in", values, "updataTime");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeNotIn(List<Date> values) {
            addCriterion("updata_time not in", values, "updataTime");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeBetween(Date value1, Date value2) {
            addCriterion("updata_time between", value1, value2, "updataTime");
            return (Criteria) this;
        }

        public Criteria andUpdataTimeNotBetween(Date value1, Date value2) {
            addCriterion("updata_time not between", value1, value2, "updataTime");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleIsNull() {
            addCriterion("updata_people is null");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleIsNotNull() {
            addCriterion("updata_people is not null");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleEqualTo(String value) {
            addCriterion("updata_people =", value, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleNotEqualTo(String value) {
            addCriterion("updata_people <>", value, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleGreaterThan(String value) {
            addCriterion("updata_people >", value, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleGreaterThanOrEqualTo(String value) {
            addCriterion("updata_people >=", value, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleLessThan(String value) {
            addCriterion("updata_people <", value, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleLessThanOrEqualTo(String value) {
            addCriterion("updata_people <=", value, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleLike(String value) {
            addCriterion("updata_people like", value, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleNotLike(String value) {
            addCriterion("updata_people not like", value, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleIn(List<String> values) {
            addCriterion("updata_people in", values, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleNotIn(List<String> values) {
            addCriterion("updata_people not in", values, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleBetween(String value1, String value2) {
            addCriterion("updata_people between", value1, value2, "updataPeople");
            return (Criteria) this;
        }

        public Criteria andUpdataPeopleNotBetween(String value1, String value2) {
            addCriterion("updata_people not between", value1, value2, "updataPeople");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}